import { request } from "../request/request";

// 发送消息，数据库保存消息
export const sendMessage = (data) => {
    console.log(data)
	return request({
		url: '/message/save',
		method: 'post',
		data: data
	})
}
// 机器人回复消息
export const robotReply = (data) => {
	return request({
		url: '/ai/chat',
		method: 'post',
		data: data,
		dataType: 'json',
		responseType: 'text'
	})
}

